home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jazlib.arc / MOVE.ASM < prev    next >
Assembly Source File  |  1988-12-18  |  374b  |  29 lines

  1.  
  2. title    buffer move
  3. name    move
  4.  
  5.     assume cs:_text
  6. _text    segment public byte 'code'
  7.     public _move
  8.  
  9. _move    proc near
  10.  
  11.     push bp
  12.     mov bp,sp
  13.     push si
  14.     push di
  15.  
  16.     mov di,[bp+4]        ; get destin
  17.     mov si,[bp+6]        ; get source
  18.     mov cx,[bp+8]        ; get number of chars
  19.     rep movsb        ; move the data
  20.  
  21.     pop di
  22.     pop si
  23.     mov sp,bp
  24.     pop  bp
  25.     ret
  26. _move  endp
  27. _text    ends
  28.     end
  29.